package configs

var (
	//api1站点域名
	DomainApi = Manager.GetString("domain.api")

	// 过滤ip
	FilterIpOpen     = Manager.GetInt("filterIp.open")
	FilterIpAllowIps = Manager.GetStringSlice("filterIp.allow_ips")

	// 过滤签名
	FilterSignIsOpen = Manager.GetInt("filterSign.open")
	FilterSignKey    = Manager.GetString("filterSign.key")
	FilterWebSignKey = Manager.GetString("filterSign.key_web")

	// 过滤token(客户端token)
	FilterTokenIsOpen   = Manager.GetInt("filterToken.open")
	FilterTokenCacheKey = Manager.GetString("filterToken.cache_key")

	// 过滤服务编码
	FilterCodeIsOpen     = Manager.GetInt("filterCode.open")
	FilterCodeKey        = Manager.GetString("filterCode.key")
	FilterCodeServerName = Manager.GetString("filterCode.server_name")
	FilterCodeTimeLimit  = Manager.GetInt64("filterCode.time_limit")

	// 过滤 ServiceCode
	FilterServiceCodeIsOpen = Manager.GetInt("filterServiceCodeIsOpen")
	ServiceKeys             = Manager.GetStringMapString("serviceKeys")

	//跨域
	AllowOriginDomain = Manager.GetStringSlice("allowOrigin.domain")
	AllowOriginMethod = Manager.GetStringSlice("allowOrigin.method")
	AllowOriginHeader = Manager.GetStringSlice("allowOrigin.header")
)
